package com.example.springbootServiceNetwork.demos.web.Service;

import com.example.springbootServiceNetwork.demos.web.Config.Result;
import com.example.springbootServiceNetwork.demos.web.Dto.VerificationCode;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface EmailCodeService {
    ServletOutputStream creatCode(HttpServletResponse response) throws IOException;

    Result verifyCode(VerificationCode verificationCode);

    Result sendHtmlMail(String to, String subject, String content);

    //新增邮箱
    Result sendEmail(VerificationCode emailCode);

    //删除邮箱验证
    Result verifyEmail(VerificationCode emailCode);
}
